package com.mindshifter.pivotaltracker.services.v3.core
{
	public class TrackerFilter  {
		
		private var ids:Array = new Array();
		private var label:String = "";
		private var type:String = "";
		public  function TrackerFilter():void
		{
			
		}
		public function filterByIds(ids:Array):TrackerFilter
		{
			this.ids = ids;
			return this;
		}
		public function filterByLabel(label:String):TrackerFilter
		{
			this.label = label;
			return this;
		}
		public function filterByType(type:String):TrackerFilter
		{
			this.type = type;
			return this;
		}
		public function buildFilter():String {
			return escape("?filter=id:"+ids.toString()+" label:\""+label+"\""+" type:"+type);			
		}		
	}
}